package com.geek.demo01.model;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


/**
 * @ClassName User
 * @Description TODO
 * @Author zzm
 * @Data 2020/10/20 9:19
 * @Version 1.0
 */
@Data
public class UserBO {

    private String id;

    @NotBlank(message = "用户名不能为空")
    private String username;

    @Length(min = 6, message = "不小于6位")
    private String password;
    private String confirmPassword;

}
